<?php echo "<br /> THIS IS TEMPLATE"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title> <?php echo $title; ?> </title>
<link href="<?php echo base_url(); ?>css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
// <![CDATA[
base_url = '<?php base_url(); ?>';
//]] >
</script>
</head>
<body>
<div id="container">
	<div id="header">
	 <?php //$this->load->view('header'); ?>
	 <h1><i>i</i>Merhcant: Administration Site</h1>
	  <p> &nbsp; blah blah blah blah</p>
	</div>
	
 	<div id="allContent">
		<div id="navcontainer">
			<ul id="navlist">
      			<?php $this->load->view('topnav'); ?>
			</ul>
    	</div>
		<div id="sidebar1">
        	<div class="sideContainer">
            	<div class="sideConTitle"><h1>Categories</h1></div>
                	 <?php
					  if($main != "home") {
						switch ($main) {	
						 	case "users/view_users";
						 	case "users/add_users";
						 	case "users/edit";
							case "users/update";
							case "users/sent";
							case "users/update";
							case "users/delete";
					 			$this->load->view('users/navigation'); 
								break;
								
							case "cities/view_cities";
						 	case "cities/add_cities";
						 	case "cities/edit";
							case "cities/update";
							case "cities/sent";
							case "cities/update";
							case "cities/delete";
					 			$this->load->view('cities/navigation'); 
								break;
								
							case "commodities/view_commodities";
						 	case "commodities/add_commodities";
						 	case "commodities/edit";
							case "commodities/update";
							case "commodities/sent";
							case "commodities/update";
							case "commodities/delete";
					 			$this->load->view('commodities/navigation'); 
								break;
								
							case "stores/view_stores";
						 	case "stores/add_stores";
						 	case "stores/edit";
							case "stores/update";
							case "stores/sent";
							case "stores/update";
							case "stores/delete";
					 			$this->load->view('stores/navigation'); 
								break;
								
							case "transactions/view_transactions";
						 	case "transactions/add_transactions";
						 	case "transactions/edit";
							case "transactions/update";
							case "transactions/sent";
							case "transactions/update";
							case "transactions/delete";
					 			$this->load->view('transactions/navigation'); 
								break;
						 }
					  }
					 ?>
            </div>
		</div>	
		<div id="mainContent">
			<?php $this->load->view($main); ?>
		</div>
  </div>
  
	<div id="footer">
		<p>Copyright <?php echo date("Y"); ?>
		<?php echo " <i>i</i>merchant: Experience the world of business"; ?></p>
	</div>
</div>
</body>
</html>